home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / mactool / newsspea.sit / TCP NewsTalk 1.1 / background_2599.xml next >
Encoding:
Extensible Markup Language  |  1991-07-31  |  23.8 KB  |  739 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2599</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3901.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_2238.css" />
  11.     <part>
  12.         <id>43</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <true /> </autoTab>
  20.         <lockText> <false /> </lockText>
  21.         <rect>
  22.             <left>127</left>
  23.             <top>209</top>
  24.             <right>333</right>
  25.             <bottom>226</bottom>
  26.         </rect>
  27.         <style>shadow</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>9</textSize>
  38.         <textStyle>bold</textStyle>
  39.         <textHeight>12</textHeight>
  40.         <name>hostName</name>
  41.         <script>on closeField
  42. put TCPNameToAddr(field "hostName") into field "address"
  43. end closeField
  44. </script>
  45.     </part>
  46.     <part>
  47.         <id>26</id>
  48.         <type>field</type>
  49.         <visible> <true /> </visible>
  50.         <dontWrap> <false /> </dontWrap>
  51.         <dontSearch> <false /> </dontSearch>
  52.         <sharedText> <false /> </sharedText>
  53.         <fixedLineHeight> <true /> </fixedLineHeight>
  54.         <autoTab> <true /> </autoTab>
  55.         <lockText> <true /> </lockText>
  56.         <rect>
  57.             <left>22</left>
  58.             <top>232</top>
  59.             <right>265</right>
  60.             <bottom>248</bottom>
  61.         </rect>
  62.         <style>transparent</style>
  63.         <autoSelect> <false /> </autoSelect>
  64.         <showLines> <true /> </showLines>
  65.         <wideMargins> <false /> </wideMargins>
  66.         <multipleLines> <false /> </multipleLines>
  67.         <reservedFamily> 0 </reservedFamily>
  68.         <titleWidth>0</titleWidth>
  69.         <icon>0</icon>
  70.         <textAlign>right</textAlign>
  71.         <font>Geneva</font>
  72.         <textSize>9</textSize>
  73.         <textStyle>plain</textStyle>
  74.         <textHeight>12</textHeight>
  75.         <name>address</name>
  76.         <script></script>
  77.     </part>
  78.     <part>
  79.         <id>2</id>
  80.         <type>field</type>
  81.         <visible> <true /> </visible>
  82.         <dontWrap> <false /> </dontWrap>
  83.         <dontSearch> <false /> </dontSearch>
  84.         <sharedText> <false /> </sharedText>
  85.         <fixedLineHeight> <true /> </fixedLineHeight>
  86.         <autoTab> <false /> </autoTab>
  87.         <lockText> <true /> </lockText>
  88.         <rect>
  89.             <left>16</left>
  90.             <top>25</top>
  91.             <right>498</right>
  92.             <bottom>186</bottom>
  93.         </rect>
  94.         <style>scrolling</style>
  95.         <autoSelect> <false /> </autoSelect>
  96.         <showLines> <false /> </showLines>
  97.         <wideMargins> <false /> </wideMargins>
  98.         <multipleLines> <false /> </multipleLines>
  99.         <reservedFamily> 0 </reservedFamily>
  100.         <titleWidth>0</titleWidth>
  101.         <icon>0</icon>
  102.         <textAlign>left</textAlign>
  103.         <font>Geneva</font>
  104.         <textSize>9</textSize>
  105.         <textStyle>plain</textStyle>
  106.         <textHeight>12</textHeight>
  107.         <name>screen</name>
  108.         <script></script>
  109.     </part>
  110.     <part>
  111.         <id>7</id>
  112.         <type>button</type>
  113.         <visible> <true /> </visible>
  114.         <reserved5> 0 </reserved5>
  115.         <reserved4> 0 </reserved4>
  116.         <reserved3> 0 </reserved3>
  117.         <reserved2> 0 </reserved2>
  118.         <reserved1> 0 </reserved1>
  119.         <enabled> <true /> </enabled>
  120.         <rect>
  121.             <left>411</left>
  122.             <top>297</top>
  123.             <right>443</right>
  124.             <bottom>326</bottom>
  125.         </rect>
  126.         <style>shadow</style>
  127.         <showName> <false /> </showName>
  128.         <highlight> <false /> </highlight>
  129.         <autoHighlight> <false /> </autoHighlight>
  130.         <sharedHighlight> <true /> </sharedHighlight>
  131.         <family>0</family>
  132.         <titleWidth>0</titleWidth>
  133.         <icon>21700</icon>
  134.         <textAlign>center</textAlign>
  135.         <font>Chicago</font>
  136.         <textSize>12</textSize>
  137.         <textStyle>plain</textStyle>
  138.         <name>Home</name>
  139.         <script>on mouseUp
  140. visual effect iris open
  141. go Home
  142. end mouseUp
  143. </script>
  144.     </part>
  145.     <part>
  146.         <id>18</id>
  147.         <type>button</type>
  148.         <visible> <true /> </visible>
  149.         <reserved5> 0 </reserved5>
  150.         <reserved4> 0 </reserved4>
  151.         <reserved3> 0 </reserved3>
  152.         <reserved2> 0 </reserved2>
  153.         <reserved1> 0 </reserved1>
  154.         <enabled> <true /> </enabled>
  155.         <rect>
  156.             <left>367</left>
  157.             <top>297</top>
  158.             <right>399</right>
  159.             <bottom>326</bottom>
  160.         </rect>
  161.         <style>shadow</style>
  162.         <showName> <false /> </showName>
  163.         <highlight> <false /> </highlight>
  164.         <autoHighlight> <false /> </autoHighlight>
  165.         <sharedHighlight> <true /> </sharedHighlight>
  166.         <family>0</family>
  167.         <titleWidth>0</titleWidth>
  168.         <icon>2478</icon>
  169.         <textAlign>center</textAlign>
  170.         <font>Chicago</font>
  171.         <textSize>12</textSize>
  172.         <textStyle>plain</textStyle>
  173.         <name>Home</name>
  174.         <script>on mouseUp
  175. visual effect iris open
  176. go to next card
  177. end mouseUp
  178. </script>
  179.     </part>
  180.     <part>
  181.         <id>27</id>
  182.         <type>field</type>
  183.         <visible> <true /> </visible>
  184.         <dontWrap> <false /> </dontWrap>
  185.         <dontSearch> <false /> </dontSearch>
  186.         <sharedText> <false /> </sharedText>
  187.         <fixedLineHeight> <true /> </fixedLineHeight>
  188.         <autoTab> <true /> </autoTab>
  189.         <lockText> <false /> </lockText>
  190.         <rect>
  191.             <left>208</left>
  192.             <top>248</top>
  193.             <right>265</right>
  194.             <bottom>264</bottom>
  195.         </rect>
  196.         <style>transparent</style>
  197.         <autoSelect> <false /> </autoSelect>
  198.         <showLines> <true /> </showLines>
  199.         <wideMargins> <false /> </wideMargins>
  200.         <multipleLines> <false /> </multipleLines>
  201.         <reservedFamily> 0 </reservedFamily>
  202.         <titleWidth>0</titleWidth>
  203.         <icon>0</icon>
  204.         <textAlign>right</textAlign>
  205.         <font>Geneva</font>
  206.         <textSize>9</textSize>
  207.         <textStyle>plain</textStyle>
  208.         <textHeight>12</textHeight>
  209.         <name>port</name>
  210.         <script></script>
  211.     </part>
  212.     <part>
  213.         <id>28</id>
  214.         <type>field</type>
  215.         <visible> <true /> </visible>
  216.         <dontWrap> <false /> </dontWrap>
  217.         <dontSearch> <false /> </dontSearch>
  218.         <sharedText> <false /> </sharedText>
  219.         <fixedLineHeight> <true /> </fixedLineHeight>
  220.         <autoTab> <true /> </autoTab>
  221.         <lockText> <false /> </lockText>
  222.         <rect>
  223.             <left>208</left>
  224.             <top>264</top>
  225.             <right>265</right>
  226.             <bottom>280</bottom>
  227.         </rect>
  228.         <style>transparent</style>
  229.         <autoSelect> <false /> </autoSelect>
  230.         <showLines> <true /> </showLines>
  231.         <wideMargins> <false /> </wideMargins>
  232.         <multipleLines> <false /> </multipleLines>
  233.         <reservedFamily> 0 </reservedFamily>
  234.         <titleWidth>0</titleWidth>
  235.         <icon>0</icon>
  236.         <textAlign>right</textAlign>
  237.         <font>Geneva</font>
  238.         <textSize>9</textSize>
  239.         <textStyle>plain</textStyle>
  240.         <textHeight>12</textHeight>
  241.         <name>local port</name>
  242.         <script></script>
  243.     </part>
  244.     <part>
  245.         <id>29</id>
  246.         <type>button</type>
  247.         <visible> <true /> </visible>
  248.         <reserved5> 0 </reserved5>
  249.         <reserved4> 0 </reserved4>
  250.         <reserved3> 0 </reserved3>
  251.         <reserved2> 0 </reserved2>
  252.         <reserved1> 0 </reserved1>
  253.         <enabled> <true /> </enabled>
  254.         <rect>
  255.             <left>25</left>
  256.             <top>229</top>
  257.             <right>97</right>
  258.             <bottom>281</bottom>
  259.         </rect>
  260.         <style>shadow</style>
  261.         <showName> <true /> </showName>
  262.         <highlight> <false /> </highlight>
  263.         <autoHighlight> <true /> </autoHighlight>
  264.         <sharedHighlight> <true /> </sharedHighlight>
  265.         <family>0</family>
  266.         <titleWidth>0</titleWidth>
  267.         <icon>0</icon>
  268.         <textAlign>center</textAlign>
  269.         <font>Geneva</font>
  270.         <textSize>10</textSize>
  271.         <textStyle>plain</textStyle>
  272.         <name>ActiveOpen</name>
  273.         <script>on mouseUp
  274. global connectionID
  275. if connectionID is not empty then exit mouseup
  276. put TCPActiveOpen(item 1 of field "address", field "port", ┬¼
  277. field "local port") into connectionID
  278. if connectionID contains "fail" then
  279. put "The Result:" && connectionID
  280. put empty into connectionID
  281. end if
  282. end mouseUp
  283. </script>
  284.     </part>
  285.     <part>
  286.         <id>31</id>
  287.         <type>button</type>
  288.         <visible> <true /> </visible>
  289.         <reserved5> 0 </reserved5>
  290.         <reserved4> 0 </reserved4>
  291.         <reserved3> 0 </reserved3>
  292.         <reserved2> 0 </reserved2>
  293.         <reserved1> 0 </reserved1>
  294.         <enabled> <true /> </enabled>
  295.         <rect>
  296.             <left>100</left>
  297.             <top>259</top>
  298.             <right>169</right>
  299.             <bottom>274</bottom>
  300.         </rect>
  301.         <style>rectangle</style>
  302.         <showName> <true /> </showName>
  303.         <highlight> <false /> </highlight>
  304.         <autoHighlight> <true /> </autoHighlight>
  305.         <sharedHighlight> <true /> </sharedHighlight>
  306.         <family>0</family>
  307.         <titleWidth>0</titleWidth>
  308.         <icon>0</icon>
  309.         <textAlign>center</textAlign>
  310.         <font>Geneva</font>
  311.         <textSize>10</textSize>
  312.         <textStyle>plain</textStyle>
  313.         <name>PassiveOpen</name>
  314.         <script>on mouseUp
  315. global connectionID
  316. put TCPPassiveOpen(item 1 of field "address",field "port", ┬¼
  317. field "local port") into connectionID
  318. if connectionID contains "fail" then
  319. put "The Result:" && connectionID
  320. put empty into connectionID
  321. end if
  322. end mouseUp
  323. </script>
  324.     </part>
  325.     <part>
  326.         <id>32</id>
  327.         <type>button</type>
  328.         <visible> <true /> </visible>
  329.         <reserved5> 0 </reserved5>
  330.         <reserved4> 0 </reserved4>
  331.         <reserved3> 0 </reserved3>
  332.         <reserved2> 0 </reserved2>
  333.         <reserved1> 0 </reserved1>
  334.         <enabled> <true /> </enabled>
  335.         <rect>
  336.             <left>274</left>
  337.             <top>282</top>
  338.             <right>331</right>
  339.             <bottom>298</bottom>
  340.         </rect>
  341.         <style>radiobutton</style>
  342.         <showName> <true /> </showName>
  343.         <highlight> <true /> </highlight>
  344.         <autoHighlight> <false /> </autoHighlight>
  345.         <sharedHighlight> <true /> </sharedHighlight>
  346.         <family>0</family>
  347.         <titleWidth>0</titleWidth>
  348.         <icon>0</icon>
  349.         <textAlign>center</textAlign>
  350.         <font>Geneva</font>
  351.         <textSize>10</textSize>
  352.         <textStyle>plain</textStyle>
  353.         <name>CrLf</name>
  354.         <script>on mouseUp
  355. set the hilite of bg button "CrLf" to true
  356. set the hilite of bg button "Cr" to false
  357. set the hilite of bg button "Nothing" to false
  358. end mouseUp
  359. </script>
  360.     </part>
  361.     <part>
  362.         <id>33</id>
  363.         <type>button</type>
  364.         <visible> <true /> </visible>
  365.         <reserved5> 0 </reserved5>
  366.         <reserved4> 0 </reserved4>
  367.         <reserved3> 0 </reserved3>
  368.         <reserved2> 0 </reserved2>
  369.         <reserved1> 0 </reserved1>
  370.         <enabled> <true /> </enabled>
  371.         <rect>
  372.             <left>274</left>
  373.             <top>296</top>
  374.             <right>331</right>
  375.             <bottom>312</bottom>
  376.         </rect>
  377.         <style>radiobutton</style>
  378.         <showName> <true /> </showName>
  379.         <highlight> <false /> </highlight>
  380.         <autoHighlight> <false /> </autoHighlight>
  381.         <sharedHighlight> <true /> </sharedHighlight>
  382.         <family>0</family>
  383.         <titleWidth>0</titleWidth>
  384.         <icon>0</icon>
  385.         <textAlign>center</textAlign>
  386.         <font>Geneva</font>
  387.         <textSize>10</textSize>
  388.         <textStyle>plain</textStyle>
  389.         <name>Cr</name>
  390.         <script>on mouseUp
  391. set the hilite of bg button "Cr" to true
  392. set the hilite of bg button "CrLf" to false
  393. set the hilite of bg button "Nothing" to false
  394. end mouseUp
  395. </script>
  396.     </part>
  397.     <part>
  398.         <id>34</id>
  399.         <type>button</type>
  400.         <visible> <true /> </visible>
  401.         <reserved5> 0 </reserved5>
  402.         <reserved4> 0 </reserved4>
  403.         <reserved3> 0 </reserved3>
  404.         <reserved2> 0 </reserved2>
  405.         <reserved1> 0 </reserved1>
  406.         <enabled> <true /> </enabled>
  407.         <rect>
  408.             <left>274</left>
  409.             <top>310</top>
  410.             <right>331</right>
  411.             <bottom>326</bottom>
  412.         </rect>
  413.         <style>radiobutton</style>
  414.         <showName> <true /> </showName>
  415.         <highlight> <false /> </highlight>
  416.         <autoHighlight> <false /> </autoHighlight>
  417.         <sharedHighlight> <true /> </sharedHighlight>
  418.         <family>0</family>
  419.         <titleWidth>0</titleWidth>
  420.         <icon>0</icon>
  421.         <textAlign>center</textAlign>
  422.         <font>Geneva</font>
  423.         <textSize>10</textSize>
  424.         <textStyle>plain</textStyle>
  425.         <name>Nothing</name>
  426.         <script>on mouseUp
  427. set the hilite of bg button "Nothing" to true
  428. set the hilite of bg button "Cr" to false
  429. set the hilite of bg button "CrLf" to false
  430. end mouseUp
  431. </script>
  432.     </part>
  433.     <part>
  434.         <id>36</id>
  435.         <type>button</type>
  436.         <visible> <true /> </visible>
  437.         <reserved5> 0 </reserved5>
  438.         <reserved4> 0 </reserved4>
  439.         <reserved3> 0 </reserved3>
  440.         <reserved2> 0 </reserved2>
  441.         <reserved1> 0 </reserved1>
  442.         <enabled> <true /> </enabled>
  443.         <rect>
  444.             <left>127</left>
  445.             <top>284</top>
  446.             <right>205</right>
  447.             <bottom>303</bottom>
  448.         </rect>
  449.         <style>rectangle</style>
  450.         <showName> <true /> </showName>
  451.         <highlight> <false /> </highlight>
  452.         <autoHighlight> <true /> </autoHighlight>
  453.         <sharedHighlight> <true /> </sharedHighlight>
  454.         <family>0</family>
  455.         <titleWidth>0</titleWidth>
  456.         <icon>0</icon>
  457.         <textAlign>center</textAlign>
  458.         <font>Chicago</font>
  459.         <textSize>12</textSize>
  460.         <textStyle>plain</textStyle>
  461.         <name>Send Line</name>
  462.         <script>on mouseUp
  463. global connectionID
  464. ask "Line to send:" && connectionID
  465. if it is not empty then
  466. if the hilite of bg button "Cr" then
  467. put return after it
  468. else if the hilite of bg button "CrLf" then
  469. put return & linefeed after it
  470. end if
  471. TCPSend connectionID,it
  472. if the result is not empty then put "The Result:" && the result
  473. if the optionKey is down then
  474. put TCPRecvMsg(connectionID,1800,"2",10000) into newInput
  475. if newInput is not empty then
  476. get rect of field "screen"
  477. get (item 4 of it) - (item 2 of it)
  478. put (it div (the textHeight of field "screen"))-1 into linesAvail
  479. get field "screen" & newInput
  480. put the number of lines in it into linesThere
  481. if linesThere > linesAvail then
  482. delete line 1 to (linesThere-linesAvail) of it
  483. end if
  484. put it into field "screen"
  485. end if
  486. end if
  487. end if
  488. end mouseUp
  489. </script>
  490.     </part>
  491.     <part>
  492.         <id>37</id>
  493.         <type>field</type>
  494.         <visible> <true /> </visible>
  495.         <dontWrap> <false /> </dontWrap>
  496.         <dontSearch> <false /> </dontSearch>
  497.         <sharedText> <false /> </sharedText>
  498.         <fixedLineHeight> <true /> </fixedLineHeight>
  499.         <autoTab> <false /> </autoTab>
  500.         <lockText> <true /> </lockText>
  501.         <rect>
  502.             <left>66</left>
  503.             <top>308</top>
  504.             <right>205</right>
  505.             <bottom>326</bottom>
  506.         </rect>
  507.         <style>transparent</style>
  508.         <autoSelect> <false /> </autoSelect>
  509.         <showLines> <false /> </showLines>
  510.         <wideMargins> <false /> </wideMargins>
  511.         <multipleLines> <false /> </multipleLines>
  512.         <reservedFamily> 0 </reservedFamily>
  513.         <titleWidth>0</titleWidth>
  514.         <icon>0</icon>
  515.         <textAlign>left</textAlign>
  516.         <font>New York</font>
  517.         <textSize>12</textSize>
  518.         <textStyle>plain</textStyle>
  519.         <textHeight>16</textHeight>
  520.         <name>state</name>
  521.         <script></script>
  522.     </part>
  523.     <part>
  524.         <id>40</id>
  525.         <type>button</type>
  526.         <visible> <true /> </visible>
  527.         <reserved5> 0 </reserved5>
  528.         <reserved4> 0 </reserved4>
  529.         <reserved3> 0 </reserved3>
  530.         <reserved2> 0 </reserved2>
  531.         <reserved1> 0 </reserved1>
  532.         <enabled> <true /> </enabled>
  533.         <rect>
  534.             <left>17</left>
  535.             <top>188</top>
  536.             <right>91</right>
  537.             <bottom>203</bottom>
  538.         </rect>
  539.         <style>rectangle</style>
  540.         <showName> <true /> </showName>
  541.         <highlight> <false /> </highlight>
  542.         <autoHighlight> <true /> </autoHighlight>
  543.         <sharedHighlight> <true /> </sharedHighlight>
  544.         <family>0</family>
  545.         <titleWidth>0</titleWidth>
  546.         <icon>0</icon>
  547.         <textAlign>center</textAlign>
  548.         <font>Geneva</font>
  549.         <textSize>10</textSize>
  550.         <textStyle>plain</textStyle>
  551.         <name>Clear Display</name>
  552.         <script>on mouseUp
  553. put empty into field "screen"
  554. end mouseUp
  555. </script>
  556.     </part>
  557.     <part>
  558.         <id>41</id>
  559.         <type>button</type>
  560.         <visible> <true /> </visible>
  561.         <reserved5> 0 </reserved5>
  562.         <reserved4> 0 </reserved4>
  563.         <reserved3> 0 </reserved3>
  564.         <reserved2> 0 </reserved2>
  565.         <reserved1> 0 </reserved1>
  566.         <enabled> <true /> </enabled>
  567.         <rect>
  568.             <left>25</left>
  569.             <top>285</top>
  570.             <right>71</right>
  571.             <bottom>300</bottom>
  572.         </rect>
  573.         <style>rectangle</style>
  574.         <showName> <true /> </showName>
  575.         <highlight> <false /> </highlight>
  576.         <autoHighlight> <true /> </autoHighlight>
  577.         <sharedHighlight> <true /> </sharedHighlight>
  578.         <family>0</family>
  579.         <titleWidth>0</titleWidth>
  580.         <icon>0</icon>
  581.         <textAlign>center</textAlign>
  582.         <font>Geneva</font>
  583.         <textSize>10</textSize>
  584.         <textStyle>plain</textStyle>
  585.         <name>Close</name>
  586.         <script>on mouseUp
  587. global connectionID
  588. send mouseup to bg button "release"
  589. TCPClose connectionID
  590. if the result is not empty then put "The Result:" && the result
  591. end mouseUp
  592. </script>
  593.     </part>
  594.     <part>
  595.         <id>42</id>
  596.         <type>button</type>
  597.         <visible> <true /> </visible>
  598.         <reserved5> 0 </reserved5>
  599.         <reserved4> 0 </reserved4>
  600.         <reserved3> 0 </reserved3>
  601.         <reserved2> 0 </reserved2>
  602.         <reserved1> 0 </reserved1>
  603.         <enabled> <true /> </enabled>
  604.         <rect>
  605.             <left>75</left>
  606.             <top>285</top>
  607.             <right>121</right>
  608.             <bottom>300</bottom>
  609.         </rect>
  610.         <style>rectangle</style>
  611.         <showName> <true /> </showName>
  612.         <highlight> <false /> </highlight>
  613.         <autoHighlight> <true /> </autoHighlight>
  614.         <sharedHighlight> <true /> </sharedHighlight>
  615.         <family>0</family>
  616.         <titleWidth>0</titleWidth>
  617.         <icon>0</icon>
  618.         <textAlign>center</textAlign>
  619.         <font>Geneva</font>
  620.         <textSize>10</textSize>
  621.         <textStyle>plain</textStyle>
  622.         <name>Release</name>
  623.         <script>on mouseUp
  624. global connectionID
  625. TCPRelease connectionID
  626. if the result is not empty then put "The Result:" && the result
  627. put empty into connectionID
  628. end mouseUp
  629. </script>
  630.     </part>
  631.     <part>
  632.         <id>45</id>
  633.         <type>field</type>
  634.         <visible> <true /> </visible>
  635.         <dontWrap> <false /> </dontWrap>
  636.         <dontSearch> <false /> </dontSearch>
  637.         <sharedText> <false /> </sharedText>
  638.         <fixedLineHeight> <false /> </fixedLineHeight>
  639.         <autoTab> <false /> </autoTab>
  640.         <lockText> <false /> </lockText>
  641.         <rect>
  642.             <left>99</left>
  643.             <top>229</top>
  644.             <right>335</right>
  645.             <bottom>281</bottom>
  646.         </rect>
  647.         <style>scrolling</style>
  648.         <autoSelect> <false /> </autoSelect>
  649.         <showLines> <false /> </showLines>
  650.         <wideMargins> <false /> </wideMargins>
  651.         <multipleLines> <false /> </multipleLines>
  652.         <reservedFamily> 0 </reservedFamily>
  653.         <titleWidth>0</titleWidth>
  654.         <icon>0</icon>
  655.         <textAlign>left</textAlign>
  656.         <font>Geneva</font>
  657.         <textSize>9</textSize>
  658.         <textStyle>plain</textStyle>
  659.         <textHeight>12</textHeight>
  660.         <name>Groups</name>
  661.         <script></script>
  662.     </part>
  663.     <part>
  664.         <id>46</id>
  665.         <type>field</type>
  666.         <visible> <true /> </visible>
  667.         <dontWrap> <false /> </dontWrap>
  668.         <dontSearch> <false /> </dontSearch>
  669.         <sharedText> <false /> </sharedText>
  670.         <fixedLineHeight> <false /> </fixedLineHeight>
  671.         <autoTab> <false /> </autoTab>
  672.         <lockText> <false /> </lockText>
  673.         <rect>
  674.             <left>354</left>
  675.             <top>267</top>
  676.             <right>399</right>
  677.             <bottom>283</bottom>
  678.         </rect>
  679.         <style>rectangle</style>
  680.         <autoSelect> <false /> </autoSelect>
  681.         <showLines> <false /> </showLines>
  682.         <wideMargins> <false /> </wideMargins>
  683.         <multipleLines> <false /> </multipleLines>
  684.         <reservedFamily> 0 </reservedFamily>
  685.         <titleWidth>0</titleWidth>
  686.         <icon>0</icon>
  687.         <textAlign>right</textAlign>
  688.         <font>Geneva</font>
  689.         <textSize>9</textSize>
  690.         <textStyle>bold</textStyle>
  691.         <textHeight>12</textHeight>
  692.         <name>P1</name>
  693.         <script></script>
  694.     </part>
  695.     <part>
  696.         <id>47</id>
  697.         <type>field</type>
  698.         <visible> <true /> </visible>
  699.         <dontWrap> <false /> </dontWrap>
  700.         <dontSearch> <false /> </dontSearch>
  701.         <sharedText> <false /> </sharedText>
  702.         <fixedLineHeight> <false /> </fixedLineHeight>
  703.         <autoTab> <false /> </autoTab>
  704.         <lockText> <false /> </lockText>
  705.         <rect>
  706.             <left>431</left>
  707.             <top>267</top>
  708.             <right>476</right>
  709.             <bottom>283</bottom>
  710.         </rect>
  711.         <style>rectangle</style>
  712.         <autoSelect> <false /> </autoSelect>
  713.         <showLines> <false /> </showLines>
  714.         <wideMargins> <false /> </wideMargins>
  715.         <multipleLines> <false /> </multipleLines>
  716.         <reservedFamily> 0 </reservedFamily>
  717.         <titleWidth>0</titleWidth>
  718.         <icon>0</icon>
  719.         <textAlign>right</textAlign>
  720.         <font>Geneva</font>
  721.         <textSize>9</textSize>
  722.         <textStyle>bold</textStyle>
  723.         <textHeight>12</textHeight>
  724.         <name>p2</name>
  725.         <script></script>
  726.     </part>
  727.     <part>
  728.         <id>48</id>
  729.         <type>field</type>
  730.         <visible> <true /> </visible>
  731.         <dontWrap> <false /> </dontWrap>
  732.         <dontSearch> <false /> </dontSearch>
  733.         <sharedText> <false /> </sharedText>
  734.         <fixedLineHeight> <false /> </fixedLineHeight>
  735.         <autoTab> <false /> </autoTab>
  736.         <lockText> <false /> </lockText>
  737.         <rect>
  738.             <left>444</left>
  739.             <top>224</top>
  740.             <right>489</right>
  741.             <bottom>240</bottom>
  742.         </rect>
  743.         <style>rectangle</style>
  744.         <autoSelect> <false /> </autoSelect>
  745.         <showLines> <false /> </showLines>
  746.         <wideMargins> <false /> </wideMargins>
  747.         <multipleLines> <false /> </multipleLines>
  748.         <reservedFamily> 0 </reservedFamily>
  749.         <titleWidth>0</titleWidth>
  750.         <icon>0</icon>
  751.         <textAlign>right</textAlign>
  752.         <font>Geneva</font>
  753.         <textSize>9</textSize>
  754.         <textStyle>bold</textStyle>
  755.         <textHeight>12</textHeight>
  756.         <name>Gnumber</name>
  757.         <script></script>
  758.     </part>
  759.     <part>
  760.         <id>49</id>
  761.         <type>field</type>
  762.         <visible> <true /> </visible>
  763.         <dontWrap> <false /> </dontWrap>
  764.         <dontSearch> <false /> </dontSearch>
  765.         <sharedText> <false /> </sharedText>
  766.         <fixedLineHeight> <false /> </fixedLineHeight>
  767.         <autoTab> <false /> </autoTab>
  768.         <lockText> <false /> </lockText>
  769.         <rect>
  770.             <left>444</left>
  771.             <top>203</top>
  772.             <right>489</right>
  773.             <bottom>219</bottom>
  774.         </rect>
  775.         <style>rectangle</style>
  776.         <autoSelect> <false /> </autoSelect>
  777.         <showLines> <false /> </showLines>
  778.         <wideMargins> <false /> </wideMargins>
  779.         <multipleLines> <false /> </multipleLines>
  780.         <reservedFamily> 0 </reservedFamily>
  781.         <titleWidth>0</titleWidth>
  782.         <icon>0</icon>
  783.         <textAlign>right</textAlign>
  784.         <font>Geneva</font>
  785.         <textSize>9</textSize>
  786.         <textStyle>bold</textStyle>
  787.         <textHeight>12</textHeight>
  788.         <name>LLines</name>
  789.         <script></script>
  790.     </part>
  791.     <part>
  792.         <id>50</id>
  793.         <type>field</type>
  794.         <visible> <true /> </visible>
  795.         <dontWrap> <false /> </dontWrap>
  796.         <dontSearch> <false /> </dontSearch>
  797.         <sharedText> <false /> </sharedText>
  798.         <fixedLineHeight> <false /> </fixedLineHeight>
  799.         <autoTab> <false /> </autoTab>
  800.         <lockText> <false /> </lockText>
  801.         <rect>
  802.             <left>96</left>
  803.             <top>188</top>
  804.             <right>329</right>
  805.             <bottom>203</bottom>
  806.         </rect>
  807.         <style>rectangle</style>
  808.         <autoSelect> <false /> </autoSelect>
  809.         <showLines> <false /> </showLines>
  810.         <wideMargins> <false /> </wideMargins>
  811.         <multipleLines> <false /> </multipleLines>
  812.         <reservedFamily> 0 </reservedFamily>
  813.         <titleWidth>0</titleWidth>
  814.         <icon>0</icon>
  815.         <textAlign>center</textAlign>
  816.         <font>Geneva</font>
  817.         <textSize>9</textSize>
  818.         <textStyle>bold</textStyle>
  819.         <textHeight>12</textHeight>
  820.         <name>Gname</name>
  821.         <script></script>
  822.     </part>
  823.     <name>speaker</name>
  824.     <script>on idle
  825. global connectionID, cgroup
  826. --put the heapSpace
  827. if connectionID is empty then
  828. put "no connection" into field "state"
  829. exit idle
  830. end if
  831. get TCPState(connectionID)
  832. put it into field "state"
  833. if it is not "established" then exit idle
  834. put TCPRecvUpTo(connectionID,return,10,empty) into newInput
  835. if newInput is not empty then
  836. -- get rect of field "screen"
  837. -- get (item 4 of it) - (item 2 of it)
  838. -- put (it div (the textHeight of field "screen"))-1 into linesAvail
  839. get field "screen" & newInput
  840.  
  841. -- put the number of lines in it into linesThere
  842. -- if linesThere > linesAvail then
  843. -- delete line 1 to (linesThere-linesAvail) of it
  844. -- end if
  845. put it into field "screen"
  846. if newinput contains "NNTP" and it contains "server" then group
  847. if newinput contains "request text separ" then readnext
  848. if newinput contains "420 No current article" then group
  849. if newinput contains "421 No next article" then group
  850. put number of chars of bg field "Screen" into bg field "Llines"
  851. if  bg field "Llines" > 20000 then put empty into bg field "Screen"
  852. end if
  853. end idle
  854.  
  855. on sktalk
  856. put number of lines of bg field "screen" into a
  857. repeat with i=1 to a
  858. get line 1 of bg field "screen"
  859. put second char of it into x
  860. if x >= "0" and x <= "9" then
  861. else if x Γëá "|" then
  862. if  x = ">" then
  863. delete char 1 to 2 of it
  864. speak it,bg field "p1",bg field "p2"-10
  865. else
  866. speak it,bg field "p1",bg field "p2"
  867. end if
  868. end if
  869. if the mouse is down then exit sktalk
  870. delete line 1 of bg field "screen"
  871. end repeat
  872. put empty into bg field "Screen"
  873. end sktalk
  874.  
  875. on group
  876. global connectionID,cgroup
  877. put bg field "Gnumber" into gnumber
  878. put gnumber+1 into gnumber
  879. put Gnumber into bg field "Gnumber"
  880. if number of lines of bg field "Groups" < gnumber then ┬¼
  881. put 1 into gnumber
  882. put line gnumber of bg field "groups" into cgroup
  883. put cgroup into bg field "Gname"
  884. TCPSendsk connectionID,"GROUP" && cgroup
  885. TCPSendsk connectionID,"NEXT"
  886. put empty into field "screen"
  887. end group
  888.  
  889. on readnext
  890. global connectionID
  891. sktalk
  892. TCPSendsk connectionID,"NEXT"
  893. TCPSendsk connectionID,"BODY"
  894. put empty into field "screen"
  895. end readnext
  896.  
  897. on tcpsendsk c,r
  898. TCPSend c,r & return & linefeed
  899. -- put c && r
  900. end tcpsendsk
  901.  
  902. on openCard
  903. global connectionID, gnumber
  904. put 1 into gnumber
  905. put empty into connectionID
  906. end openCard
  907.  
  908. on closeCard
  909. global connectionID
  910. if connectionID is not empty then
  911. TCPRelease connectionID
  912. put empty into connectionID
  913. end if
  914. end closeCard
  915.  
  916. on closestack
  917. global  connectionID
  918. TCPRelease connectionID
  919. end closestack
  920. </script>
  921. </background>
  922.